package org.future.esb.inboundEndpoint;

import org.future.esb.InboundEndpoint;

/**
 *@date   2010-4-12 下午07:10:59
 *@author dycc
 *@file   org.future.esb.InboundEndpoint_Jms.java
 */
public class InboundEndpoint_Jms implements InboundEndpoint{
	private String tagName = "jms:inbound-endpoint";
	private String queue = "";
	private String topic = "";
	private String transformer_refs = "";
	private String connector_ref = "";
	/**
	 * toString
	 */
	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append("<" + tagName);
		if(!queue.equals("")){
			sb.append(" queue=\"" + getQueue() + "\"");
		}
		if(!topic.equals("")){
			sb.append(" topic=\"" + getTopic() + "\"");
		}
		if(!transformer_refs.equals("")){
			sb.append(" transformer-refs=\"" + getTransformer_refs() + "\"");
		}
		if(!connector_ref.equals("")){
			sb.append(" connector-ref=\"" + getConnector_ref() + "\"");
		}
		sb.append(">");
		sb.append("\r\n");
		// add end element
		sb.append("</" + tagName + "\"");
		return sb.toString();
	}
	
	public String getTagName() {
    	return tagName;
    }
	public void setTagName(String tagName) {
    	this.tagName = tagName;
    }
	public String getQueue() {
    	return queue;
    }
	public void setQueue(String queue) {
    	this.queue = queue;
    }
	public String getTopic() {
    	return topic;
    }
	public void setTopic(String topic) {
    	this.topic = topic;
    }
	public String getTransformer_refs() {
    	return transformer_refs;
    }
	public void setTransformer_refs(String transformerRefs) {
    	transformer_refs = transformerRefs;
    }
	public String getConnector_ref() {
    	return connector_ref;
    }
	public void setConnector_ref(String connectorRef) {
    	connector_ref = connectorRef;
    }
	
}
